projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8213d7
)
icontheme: Make icon_paintable_ensure_texture() return an unowned value
author
Timm Bäder
<mail@baedert.org>
Thu, 17 Dec 2020 17:45:47 +0000
(18:45 +0100)
committer
Timm Bäder
<mail@baedert.org>
Mon, 21 Dec 2020 09:26:02 +0000
(10:26 +0100)
It's private, has only one caller and that one doesn't need the extra
ref.
gtk/gtkicontheme.c
patch
|
blob
|
history
diff --git
a/gtk/gtkicontheme.c
b/gtk/gtkicontheme.c
index 879213584653ee735006c2223cb29ab1039eead7..08da8ce2d02b9f1649eee701800a458fde08eea3 100644
(file)
--- a/
gtk/gtkicontheme.c
+++ b/
gtk/gtkicontheme.c
@@
-3850,7
+3850,7
@@
gtk_icon_paintable_ensure_texture (GtkIconPaintable *self)
icon_ensure_texture__locked (self, FALSE);
- texture =
g_object_ref (self->texture)
;
+ texture =
self->texture
;
g_mutex_unlock (&self->texture_lock);
@@
-3971,11
+3971,8
@@
gtk_icon_paintable_snapshot_with_colors (GtkIconPaintable *icon,
if (symbolic)
gtk_snapshot_pop (snapshot);
-
- g_object_unref (texture);
}
-
static GdkPaintableFlags
icon_paintable_get_flags (GdkPaintable *paintable)
{